from django.db import models

# Create your models here.
class ProCityArea(models.Model):
    name = models.CharField('名字',max_length=20)
    pid = models.ForeignKey('self',related_name='city',null=True,blank=True,on_delete=models.CASCADE)

    class Meta:
        db_table = 'city_tb'
        verbose_name_plural = '省市县表'
    def __str__(self):
        return self.name
